package com.ys.enume.finance;

//万里汇账号资金相关 - 币种
public class TcwExchangeRateEnum {
	
	public enum ExchangeRate {
		CNH("离岸人民币", "CNH"),
		USD("美元", "USD"),
		EUR("欧元", "EUR"),
		JPY("日元", "JPY"),
		HKD("港币", "HKD"),
		AUD("澳大利亚", "AUD"),
		GBP("英镑", "GBP"),
		OTHER("其他", "OTHER")
		;

		public String name;
		public String value;

		private ExchangeRate(String name, String value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(String value) {
			for (ExchangeRate e : ExchangeRate.values()) {
				if (e.value == value) {
					return e.name;
				}
			}
			return "";
		}

		public static String getValue(String name) {
			for (ExchangeRate e : ExchangeRate.values()) {
				if (e.name == name) {
					return e.value;
				}
			}
			return "";
		}


	}
}
